package com.molichuxing.services.infrastructure.bean;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.molichuxing.framework.bean.RootBean;

public class OrderMileageBean extends RootBean {
	/**
	 * id id
	 */
    private Integer id;

    /**
     * 订单号 order_code
     */
    private Long orderCode;

    /**
     * 主订单号 master_order_code
     */
    private Long masterOrderCode;

    /**
     * 用户id user_id
     */
    private Integer userId;

    /**
     * 里程包id package_mileage_id
     */
    private Integer packageMileageId;

    /**
     * 加购里程数 purchase_mileage
     */
    private Integer purchaseMileage;

    /**
     * 加购里程金额 purchase_fee
     */
    private BigDecimal purchaseFee;

    /**
     * 超里程数 beyond_mileage
     */
    private Integer beyondMileage;

    /**
     * 里程单价 beyond_mileage_unit_price
     */
    private BigDecimal beyondMileageUnitPrice;

    /**
     * 超里程金额 beyond_fee
     */
    private BigDecimal beyondFee;

    /**
     * 状态（0：待支付，1：已支付，2：已取消） status
     */
    private Integer status;

    /**
     * 加购时间 purchase_time
     */
    private LocalDateTime purchaseTime;

    /**
	 * 支付方式( 11：智能终端-微信， 12：智能终端-支付宝， 13：智能终端-pos机，21：微信-公众号，22：微信-H5，
	 * 23：微信-APP，34：微信-扫码，25：微信-小程序，31：支付宝-APP，32：支付宝-H5，41:
	 * 线下支付，51：银联-APP，51：银联-H5) pay_way
	 */
	private Integer payWay;

	/**
	 * 支付成功时间 pay_time
	 */
	private LocalDateTime payTime;

    /**
     * 创建时间 gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     * 更新时间 gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * orders_order_mileage
     */
    private static final long serialVersionUID = 1L;

    /**
	 * id
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return id id
	 */
	@Override
	public Integer getId() {
        return id;
    }

    /**
	 * id
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param id
	 *            id
	 */
	@Override
	public void setId(Integer id) {
        this.id = id;
    }

    /**
	 * 订单号
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return order_code 订单号
	 */
    public Long getOrderCode() {
        return orderCode;
    }

    /**
	 * 订单号
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param orderCode
	 *            订单号
	 */
    public void setOrderCode(Long orderCode) {
        this.orderCode = orderCode;
    }

    /**
	 * 主订单号
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return master_order_code 主订单号
	 */
    public Long getMasterOrderCode() {
        return masterOrderCode;
    }

    /**
	 * 主订单号
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param masterOrderCode
	 *            主订单号
	 */
    public void setMasterOrderCode(Long masterOrderCode) {
        this.masterOrderCode = masterOrderCode;
    }

    /**
	 * 用户id
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return user_id 用户id
	 */
    public Integer getUserId() {
        return userId;
    }

    /**
	 * 用户id
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param userId
	 *            用户id
	 */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
	 * 里程包id
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return package_mileage_id 里程包id
	 */
    public Integer getPackageMileageId() {
        return packageMileageId;
    }

    /**
	 * 里程包id
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param packageMileageId
	 *            里程包id
	 */
    public void setPackageMileageId(Integer packageMileageId) {
        this.packageMileageId = packageMileageId;
    }

    /**
	 * 加购里程数
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return purchase_mileage 加购里程数
	 */
    public Integer getPurchaseMileage() {
        return purchaseMileage;
    }

    /**
	 * 加购里程数
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param purchaseMileage
	 *            加购里程数
	 */
    public void setPurchaseMileage(Integer purchaseMileage) {
        this.purchaseMileage = purchaseMileage;
    }

    /**
	 * 加购里程金额
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return purchase_fee 加购里程金额
	 */
    public BigDecimal getPurchaseFee() {
        return purchaseFee;
    }

    /**
	 * 加购里程金额
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param purchaseFee
	 *            加购里程金额
	 */
    public void setPurchaseFee(BigDecimal purchaseFee) {
        this.purchaseFee = purchaseFee;
    }

    /**
	 * 超里程数
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return beyond_mileage 超里程数
	 */
    public Integer getBeyondMileage() {
        return beyondMileage;
    }

    /**
	 * 超里程数
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param beyondMileage
	 *            超里程数
	 */
    public void setBeyondMileage(Integer beyondMileage) {
        this.beyondMileage = beyondMileage;
    }

    /**
	 * 里程单价
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return beyond_mileage_unit_price 里程单价
	 */
    public BigDecimal getBeyondMileageUnitPrice() {
        return beyondMileageUnitPrice;
    }

    /**
	 * 里程单价
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param beyondMileageUnitPrice
	 *            里程单价
	 */
    public void setBeyondMileageUnitPrice(BigDecimal beyondMileageUnitPrice) {
        this.beyondMileageUnitPrice = beyondMileageUnitPrice;
    }

    /**
	 * 超里程金额
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return beyond_fee 超里程金额
	 */
    public BigDecimal getBeyondFee() {
        return beyondFee;
    }

    /**
	 * 超里程金额
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param beyondFee
	 *            超里程金额
	 */
    public void setBeyondFee(BigDecimal beyondFee) {
        this.beyondFee = beyondFee;
    }

    /**
	 * 状态（0：待支付，1：已支付，2：已取消）
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return status 状态（0：待支付，1：已支付，2：已取消）
	 */
    public Integer getStatus() {
        return status;
    }

    /**
	 * 状态（0：待支付，1：已支付，2：已取消）
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param status
	 *            状态（0：待支付，1：已支付，2：已取消）
	 */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
	 * 加购时间
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return purchase_time 加购时间
	 */
    public LocalDateTime getPurchaseTime() {
        return purchaseTime;
    }

    /**
	 * 加购时间
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param purchaseTime
	 *            加购时间
	 */
    public void setPurchaseTime(LocalDateTime purchaseTime) {
        this.purchaseTime = purchaseTime;
    }

    /**
	 * 支付方式( 11：智能终端-微信， 12：智能终端-支付宝， 13：智能终端-pos机，21：微信-公众号，22：微信-H5，
	 * 23：微信-APP，34：微信-扫码，25：微信-小程序，31：支付宝-APP，32：支付宝-H5，41:
	 * 线下支付，51：银联-APP，51：银联-H5)
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return pay_way 支付方式( 11：智能终端-微信， 12：智能终端-支付宝，
	 *         13：智能终端-pos机，21：微信-公众号，22：微信-H5，
	 *         23：微信-APP，34：微信-扫码，25：微信-小程序，31：支付宝-APP，32：支付宝-H5，41:
	 *         线下支付，51：银联-APP，51：银联-H5)
	 */
	public Integer getPayWay() {
		return payWay;
	}

	/**
	 * 支付方式( 11：智能终端-微信， 12：智能终端-支付宝， 13：智能终端-pos机，21：微信-公众号，22：微信-H5，
	 * 23：微信-APP，34：微信-扫码，25：微信-小程序，31：支付宝-APP，32：支付宝-H5，41:
	 * 线下支付，51：银联-APP，51：银联-H5)
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param payWay
	 *            支付方式( 11：智能终端-微信， 12：智能终端-支付宝，
	 *            13：智能终端-pos机，21：微信-公众号，22：微信-H5，
	 *            23：微信-APP，34：微信-扫码，25：微信-小程序，31：支付宝-APP，32：支付宝-H5，41:
	 *            线下支付，51：银联-APP，51：银联-H5)
	 */
	public void setPayWay(Integer payWay) {
		this.payWay = payWay;
	}

	/**
	 * 支付成功时间
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return pay_time 支付成功时间
	 */
	public LocalDateTime getPayTime() {
		return payTime;
    }

    /**
	 * 支付成功时间
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param payTime
	 *            支付成功时间
	 */
	public void setPayTime(LocalDateTime payTime) {
		this.payTime = payTime;
    }

    /**
	 * 创建时间
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return gmt_create 创建时间
	 */
	@Override
	public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    /**
	 * 创建时间
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param gmtCreate
	 *            创建时间
	 */
	@Override
	public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
	 * 更新时间
	 * 
	 * @date 2019-09-24 09:40:53
	 * @return gmt_modified 更新时间
	 */
	@Override
	public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    /**
	 * 更新时间
	 * 
	 * @date 2019-09-24 09:40:53
	 * @param gmtModified
	 *            更新时间
	 */
	@Override
	public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
		OrderMileageBean other = (OrderMileageBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderCode() == null ? other.getOrderCode() == null : this.getOrderCode().equals(other.getOrderCode()))
            && (this.getMasterOrderCode() == null ? other.getMasterOrderCode() == null : this.getMasterOrderCode().equals(other.getMasterOrderCode()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getPackageMileageId() == null ? other.getPackageMileageId() == null : this.getPackageMileageId().equals(other.getPackageMileageId()))
            && (this.getPurchaseMileage() == null ? other.getPurchaseMileage() == null : this.getPurchaseMileage().equals(other.getPurchaseMileage()))
            && (this.getPurchaseFee() == null ? other.getPurchaseFee() == null : this.getPurchaseFee().equals(other.getPurchaseFee()))
            && (this.getBeyondMileage() == null ? other.getBeyondMileage() == null : this.getBeyondMileage().equals(other.getBeyondMileage()))
            && (this.getBeyondMileageUnitPrice() == null ? other.getBeyondMileageUnitPrice() == null : this.getBeyondMileageUnitPrice().equals(other.getBeyondMileageUnitPrice()))
            && (this.getBeyondFee() == null ? other.getBeyondFee() == null : this.getBeyondFee().equals(other.getBeyondFee()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getPurchaseTime() == null ? other.getPurchaseTime() == null : this.getPurchaseTime().equals(other.getPurchaseTime()))
				&& (this.getPayWay() == null ? other.getPayWay() == null : this.getPayWay().equals(other.getPayWay()))
				&& (this.getPayTime() == null ? other.getPayTime() == null
						: this.getPayTime().equals(other.getPayTime()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderCode() == null) ? 0 : getOrderCode().hashCode());
        result = prime * result + ((getMasterOrderCode() == null) ? 0 : getMasterOrderCode().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getPackageMileageId() == null) ? 0 : getPackageMileageId().hashCode());
        result = prime * result + ((getPurchaseMileage() == null) ? 0 : getPurchaseMileage().hashCode());
        result = prime * result + ((getPurchaseFee() == null) ? 0 : getPurchaseFee().hashCode());
        result = prime * result + ((getBeyondMileage() == null) ? 0 : getBeyondMileage().hashCode());
        result = prime * result + ((getBeyondMileageUnitPrice() == null) ? 0 : getBeyondMileageUnitPrice().hashCode());
        result = prime * result + ((getBeyondFee() == null) ? 0 : getBeyondFee().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getPurchaseTime() == null) ? 0 : getPurchaseTime().hashCode());
		result = prime * result + ((getPayWay() == null) ? 0 : getPayWay().hashCode());
		result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderCode=").append(orderCode);
        sb.append(", masterOrderCode=").append(masterOrderCode);
        sb.append(", userId=").append(userId);
        sb.append(", packageMileageId=").append(packageMileageId);
        sb.append(", purchaseMileage=").append(purchaseMileage);
        sb.append(", purchaseFee=").append(purchaseFee);
        sb.append(", beyondMileage=").append(beyondMileage);
        sb.append(", beyondMileageUnitPrice=").append(beyondMileageUnitPrice);
        sb.append(", beyondFee=").append(beyondFee);
        sb.append(", status=").append(status);
        sb.append(", purchaseTime=").append(purchaseTime);
		sb.append(", payWay=").append(payWay);
		sb.append(", payTime=").append(payTime);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}